<div class="grid grid-cols-2 gap-4">
        <label class="flex items-center gap-3 px-4 py-3 rounded-xl bg-surface-900 border border-surface-700 cursor-pointer hover:border-brand-500/40 transition-all">
          <input type="checkbox" name="default_tax_inclusive" value="1" <?= $g('default_tax_inclusive')==='1'?'checked':'' ?> class="w-4 h-4 accent-brand-500">
          <div><p class="text-sm font-semibold text-white">Tax Inclusive Pricing</p><p class="text-xs text-slate-500">Prices shown include tax</p></div>
        </label>
        <label class="flex items-center gap-3 px-4 py-3 rounded-xl bg-surface-900 border border-surface-700 cursor-pointer hover:border-brand-500/40 transition-all">
          <input type="checkbox" name="loyalty_enabled" value="1" <?= $g('loyalty_enabled')==='1'?'checked':'' ?> class="w-4 h-4 accent-brand-500">
          <div><p class="text-sm font-semibold text-white">Loyalty Points</p><p class="text-xs text-slate-500">Enable customer points system</p></div>
        </label>
      </div>

      <div class="grid grid-cols-2 gap-4" id="loyalty-fields" style="<?= $g('loyalty_enabled')==='1'?'':'display:none' ?>">
        <div class="form-group">
          <label class="form-label">Points per Rs. Spent</label>
          <input name="loyalty_points_per_unit" type="number" step="0.01" min="0" class="form-input" value="<?= e($g('loyalty_points_per_unit','1')) ?>">
        </div>
        <div class="form-group">
          <label class="form-label">Min Points to Redeem</label>
          <input name="loyalty_min_redeem" type="number" min="0" class="form-input" value="<?= e($g('loyalty_min_redeem','100')) ?>">
        </div>
      </div>